home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / MiscKit1.7.1 / MiscKit / Headers / misckit / MiscSavePanel.h < prev    next >
Encoding:
Text File  |  1995-04-12  |  1.1 KB  |  42 lines

  1. //    MiscSavePanel.h -- A save panel that allows appending.
  2. //
  3. //    Written by Peter Langston and Copyright (c) 1994 by Peter S. Langston.
  4. //                Version 1.1.  All rights reserved.
  5. //    Thanks to David Griffiths <dave@prim.demon.co.uk> for the
  6. //    pointer to the _validateNames:checkBrowser: method.
  7. //
  8. //    This notice may not be removed from this source code.
  9.  
  10. #import <appkit/SavePanel.h>
  11.  
  12. @interface MiscSavePanel:SavePanel
  13. {
  14.     BOOL    appendOK;    // is append allowed?
  15.     BOOL    appMode;    // was append chosen?
  16. }
  17.  
  18. + alloc;            // returns nil
  19.  
  20. + allocFromZone:(NXZone *)zone;    // returns nil
  21.  
  22. + newContent:(const NXRect *)contentRect
  23.     style:(int)aStyle
  24.     backing:(int)bufferingType
  25.     buttonMask:(int)mask
  26.     defer:(BOOL)flag;
  27.  
  28. - (BOOL)_validateNames:(char *)name checkBrowser:(BOOL)check;
  29.                 // overriding internal method in SavePanel
  30.  
  31. - allowAppend:(BOOL)ok;        // ok=YES allows the append choice
  32.                 // ok=NO makes MiscSavePanel act like SavePanel
  33.  
  34. - (BOOL)appending;        // is an append required?
  35.                 // YES => append chosen, NO => replace
  36.  
  37. - free;                // returns self
  38.  
  39. - init;                // returns nil
  40.  
  41. @end
  42.